//
//  MPUser.swift
//  MPSinaWeibo
//
//  Created by DaVinci on 16/4/13.
//  Copyright © 2016年 DaVinci. All rights reserved.
//微博作者的信息

import UIKit

class MPUser: NSObject {
 
    ///用户名称
    var name: String?
    /// <#Description#>用户头像
    var profile_image_url: String?
    
    //微博等级0~6级
    var mbrank: Int = 0
    /// 认证类型 -1：没有认证，1：认证用户，2,3,5: 企业认证，220: 达人
    var verified = -1

    
    init(dict: [String : AnyObject]) {
        
        super.init()
        setValuesForKeysWithDictionary(dict)
    }
    
    override func setValue(value: AnyObject?, forUndefinedKey key: String) {}
    
    //将对象转化为字符串
    
    override var description: String {
    
       let keys = ["name", "profile_image_url"]
        
        let dict = dictionaryWithValuesForKeys(keys)
        
        return dict.description
    }
}
